/*
 *  Copyright 2008-2010 the original author or authors.
 * 
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *  under the License.
 */
package org.openaecfm.spf.model;

import java.util.List;
import java.util.ArrayList;

/**
 * The file name entity.
 * @author Qiu Kuining
 */
public class FileName {

    public FileName(){
        this.name = "IFC2x3.ifc";
        this.time_stamp = java.util.Calendar.getInstance().getTime().toString();
        this.author.add("Qiu Kuining");
        this.organization.add("DC");
        this.preprocessor_version = "Step clear text 1.0";
        this.originating_system = "Building Information Model";
        this.authorization = "Open for useage";
    }
    
    private String name;
    
    private String time_stamp;
    
    private List<String> author = new ArrayList<String>();
    
    private List<String> organization = new ArrayList<String>();
    
    private String preprocessor_version;
    
    private String originating_system;
    
    private String authorization;

    /**
     * Get the author.
     * @return
     */
    public List<String> getAuthor() {
        return author;
    }

    /**
     * Add an author.
     * @param s
     */
    public void addAuthor(String s){
        if(author == null)
            author = new ArrayList<String>();
        author.add(s);
    }

    /**
     * Add an organization.
     * @param s
     */
    public void addOrganization(String s){
        if(organization == null)
            organization = new ArrayList<String>();
        organization.add(s);
    }

    /**
     * Set the author.
     * @param author
     */
    public void setAuthor(List<String> author) {
        this.author = author;
    }

    /**
     * Get the authorization.
     * @return
     */
    public String getAuthorization() {
        return authorization;
    }

    /**
     * Set the authorization.
     * @param authorization
     */
    public void setAuthorization(String authorization) {
        this.authorization = authorization;
    }

    /**
     * Get the name.
     * @return
     */
    public String getName() {
        return name;
    }

    /**
     * Set the name.
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Get the organization.
     * @return
     */
    public List<String> getOrganization() {
        return organization;
    }

    /**
     * Set the organization.
     * @param organization
     */
    public void setOrganization(List<String> organization) {
        this.organization = organization;
    }

    /**
     * Get the originating system.
     * @return
     */
    public String getOriginating_system() {
        return originating_system;
    }

    /**
     * Set the originating system.
     * @param originating_system
     */
    public void setOriginating_system(String originating_system) {
        this.originating_system = originating_system;
    }

    /**
     * Get the preprocessor version.
     * @return
     */
    public String getPreprocessor_version() {
        return preprocessor_version;
    }

    /**
     * Set the processor version.
     * @param preprocessor_version
     */
    public void setPreprocessor_version(String preprocessor_version) {
        this.preprocessor_version = preprocessor_version;
    }

    /**
     * Get the time stamp.
     * @return
     */
    public String getTime_stamp() {
        return time_stamp;
    }

    /**
     * Set the time stamp.
     * @param time_stamp
     */
    public void setTime_stamp(String time_stamp) {
        this.time_stamp = time_stamp;
    }
}
